
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<s:a cssStyle="float:right;" href="javascript:showEditDialog('person!add');">新建</s:a> (<s:property value="paging.totalCount" />)
<br/>
<s:form action="person!list" theme="simple">
	<input type="text" name="person.name"/><input type="submit" value="搜索"/>
</s:form>

<!-- Paging starts -->
<s:a href="person!list?paging.currentPage=1"> |< </s:a>
<s:if test="%{paging.currentPage>1}">
	<s:a href="person!list?paging.currentPage=%{paging.currentPage-1}"> << </s:a>
</s:if>
<s:else>
	<<
</s:else>
&nbsp;&nbsp;<s:property value="paging.currentPage" />/<s:property value="paging.totalPage" />&nbsp;&nbsp;
<s:if test="%{paging.currentPage<paging.totalPage}">
	<s:a href="person!list?paging.currentPage=%{paging.currentPage+1}">>></s:a>
</s:if>
<s:else>
	>>
</s:else>
<s:a href="person!list?paging.currentPage=%{paging.totalPage}"> >| </s:a>
<!-- Paging ends -->

<table border="1" width="100%">
	<tr>
		<th>
			名
		</th>
		<th>
			name
		</th>
		<th>
			nameCn
		</th>
		<th>
			alias
		</th>
	</tr>
	<s:iterator value="persons" status="stat">
		<tr>
			<td>
				<s:a href="javascript:showEditDialog('person!edit?paging.currentPage=%{paging.currentPage}&person.id=%{id}');">
					<s:property value="displayName" /> (<s:property value="mprs.size" />)
				</s:a>
			</td>
			<td>
				<s:property value="name" escape="false"/>
			</td>
			<td>
				<s:property value="nameCn" escape="false"/>
			</td>
			<td>
				<s:property value="alias" escape="false"/>
			</td>
		</tr>
	</s:iterator>
</table>